package com.zelix;

import java.io.*;

final class xr
    implements Runnable
{

    private final bx a;
    private final yw b;
    private final File c[];
    private final hc d[];
    private final nc e[];
    private final bs f;
    private final z2 g;
    private static String z[];

    xr(hc ahc[], yw yw, bs bs1, nc anc[], bx bx1, File afile[], z2 z2_1)
    {
        d = ahc;
        b = yw;
        f = bs1;
        e = anc;
        a = bx1;
        c = afile;
        g = z2_1;
    }

    public void run()
    {
        g.a(true);
        kb kb1 = null;
        try
        {
            kb1 = new kb(new FileWriter(z[7]), true);
        }
        catch(IOException ioexception)
        {
            f.b(z[1], z[10] + ioexception.getClass().getName());
        }
        PrintWriter printwriter = null;
        try
        {
            printwriter = new PrintWriter(new FileWriter(z[0]), true);
        }
        catch(IOException ioexception1)
        {
            f.b(z[1], z[9] + ioexception1.getClass().getName());
        }
        sx sx1 = new sx(0);
        z2.a(g).a(e, d, null, c, f, b, a, kb1, printwriter, sx1, z2.c(g));
        if(kb1 != null)
            kb1.close();
        if(printwriter != null)
            printwriter.close();
        BufferedReader bufferedreader = null;
        BufferedReader bufferedreader1 = null;
        try
        {
            bufferedreader1 = new BufferedReader(new FileReader(z[7]));
            bufferedreader1.mark(1);
            if(bufferedreader1.read() != -1)
            {
                bufferedreader1.reset();
                new a2(g, z[3], z[6], bufferedreader1, false, true);
            }
        }
        catch(FileNotFoundException _ex) { }
        catch(IOException ioexception2)
        {
            new f2(g, z[5], z[11] + ioexception2.getClass().getName());
        }
        finally
        {
            if(bufferedreader1 != null)
                try
                {
                    bufferedreader1.close();
                }
                catch(IOException _ex) { }
        }
        try
        {
            bufferedreader = new BufferedReader(new FileReader(z[0]));
            bufferedreader.mark(1);
            if(bufferedreader.read() != -1)
            {
                bufferedreader.reset();
                new b2(g, z[4], z[2], bufferedreader, false, true);
            }
        }
        catch(FileNotFoundException _ex) { }
        catch(IOException ioexception3)
        {
            new f2(g, z[5], z[8] + ioexception3.getClass().getName());
        }
        finally
        {
            if(bufferedreader != null)
                try
                {
                    bufferedreader.close();
                }
                catch(IOException _ex) { }
        }
        if(a != null)
            a.a();
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0xc;
                    break;
                case 1:
                    key =46;
                    break;
                case 2:
                    key =122;
                    break;
                case 3:
                    key =99;
                    break;
                case 4:
                    key =127;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[];
        as = new String[12];
        as[0] = "Ve7<(m\\\024\n\021kb\025\004QxV\016";
        as[1] = "I|(,-6";
        as[2] = "M~3C\034mB\026\020_hK\016\006\034xK\036C\013dO\016C\022mWZ\r\020x\016\030\006_dO\024\007\023iJZ\002\nxA\027\002\013eM\033\017\023u\000TM";
        as[3] = "OB\033\020\f,a\n\006\021,k\b\021\020~]";
        as[4] = "OB\033\020\f,a\n\006\021,y\033\021\021e@\035\020";
        as[5] = "I\\\b\f\r";
        as[6] = "XF\037C\031cB\026\f\be@\035C\032~\\\025\021\f,Y\037\021\032,K\024\000\020y@\016\006\033\"\000T";
        as[7] = "Ve7<3cO\036/\020k\000\016\033\013";
        as[8] = "I\\\b\f\r,\\\037\002\033e@\035C%Gc%4\036~@\023\r\030@A\035M\013tZZY_";
        as[9] = "OA\017\017\033b\t\016C\020|K\024C%Gc%4\036~@\023\r\030@A\035M\013tZZY_";
        as[10] = "OA\017\017\033b\t\016C\020|K\024C%Gc%/\020mJ6\f\030\"Z\002\027_6\016";
        as[11] = "I\\\b\f\r,\\\037\002\033e@\035C%Gc%/\020mJ6\f\030\"Z\002\027_6\016";
        for(int i = 0; i<as.length; i++){
            as[i] = z(as[i].toCharArray());
        }
        z = as;
    }
}
